import os
for i in range(0, 1533):
    file_name = 'D:/PycharmProjects/bangjiang/gate_pass_info/gate_pass_info_{}'.format(i)
    with open(file_name, 'r', encoding='utf8') as f:
        print('process {}'.format(file_name))
        for line in f:
            line_split = line.split(',')
            device = line_split[0]
            if device == '441915000000021300':
                print('file is {}, line is {}'.format(file_name, line))